import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'

import App from './App.vue'
import router from './router'
import 'element-plus/dist/index.css'

import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const app = createApp(App)
  .use(createPinia())
  .use(router)
  .use(ElementPlus, {
    locale: zhCn, // 关键配置：设置全局中文
  })

app.config.globalProperties.$apiBaseUrl = 'http://8.138.198.182:8085'

app.mount('#app')
